package com.xgry.bpm.api.base.paymentorderpage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2020-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("payMent_orderPage")
public class PaymentOrderPage extends Model<PaymentOrderPage> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String coding;

    @TableField("documentDate")
    private LocalDateTime documentDate;

    @TableField("finalDocumentCoding")
    private String finalDocumentCoding;

    @TableField("finalDocumentType")
    private String finalDocumentType;

    @TableField("payMentState")
    private String payMentState;

    @TableField("residualTotal")
    private BigDecimal residualTotal;

    @TableField("totalAmountPaid")
    private BigDecimal totalAmountPaid;

    @TableField("totalAmountPayable")
    private BigDecimal totalAmountPayable;

    @TableField("documentMaker")
    private String documentMaker;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
